<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

/**
 * Category 测试
 */
class IOSS_Test extends CI_Controller {
	function __construct(){
		parent::__construct();
		if(ENVIRONMENT == 'production' ){
			exit('enviroment is production');
		}
		$this->load->library('unit_test');
		$this->unit->use_strict(true);
	}
	
	function index(){
		$all = IOSS_PaymentConfig::getAll();
		//var_dump($all);
		
		var_dump(IOSS_PaymentConfig::getById(1));
		var_dump(IOSS_PaymentConfig::getById(2));
		//var_dump(IOSS_PaymentConfig::getByCode('wx'));
		//var_dump(IOSS_PaymentConfig::getByCode(null));

	}
	

}